package com.qidianit.mes.md.controller;

import com.qidianit.common.pojo.MESResult;
import com.qidianit.mes.md.service.SOPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 奇幻夜之梦
 * @Company 起点编程
 * @Description
 * @Time 2024/10/24 15:08
 */
@RestController
@CrossOrigin
@RequestMapping("/material")
public class SOPController {
    @Autowired
    private SOPService sopService;
    @GetMapping("/listSOP")
    public MESResult selectAll(Long sopMaterialId) {
        return sopService.selectAll(sopMaterialId);
    }
}

